Skip to content

Conversation

@ChALkeR
Copy link

@ChALkeR ChALkeR commented Jun 14, 2025

/./ is not the correct any-char regex
/[\s\S]/ is

This lib broke on newlines

Fixes: #12

An alternative is to add /s flag (but that is more intrusive and engines are not set)
Ref: https://github.com/tc39/proposal-regexp-dotall-flag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Slicing seems to be wrong

1 participant